Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NoTele param [default: false] #2206

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jmichelsen
Copy link

With this param set to true, a character will not teleport during
pathing, even if the teleport skill is available.

This is helpful for chars with low mana management (low max or regen).
Without this, if a char runs out of mana too quickly during pathing,
they'll either wait for regen (halt, and wait) or will visit town to
refill at npc way too often.

With this param set to true, a character will not teleport during
pathing, even if the teleport skill is available.

This is helpful for chars with low mana management (low max or regen).
Without this, if a char runs out of mana too quickly during pathing,
they'll either wait for regen (halt, and wait) or will visit town to
refill at npc way too often.
@@ -118,7 +118,7 @@ var Pather = {
recursion: true,

useTeleport: function () {
return this.teleport && !me.getState(139) && !me.getState(140) && !me.inTown && ((me.classid === 1 && me.getSkill(54, 1)) || me.getStat(97, 54));
return this.teleport && !Config.NoTele && !me.getState(139) && !me.getState(140) && !me.inTown && ((me.classid === 1 && me.getSkill(54, 1)) || me.getStat(97, 54));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is redundancy with Pather.teleport here.
i'd suggest removing this addition and just modify the block a few lines above to something like this:

var Pather = {
	teleport: !Config.NoTele,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants